package com.fengchunge.dao;

import com.fengchunge.pojo.ServerInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServerInfoBackupMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ServerInfo record);

    int insertSelective(ServerInfo record);

    ServerInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ServerInfo record);

    int updateByPrimaryKey(ServerInfo record);

    int checkServerInfo(Long id);

    int updateApprovalStatusById(@Param("id") Long id, @Param("approvalStatus") Integer approvalStatus);

    int updateDeleteStatusById(@Param("id") Long id, @Param("deleteStatus") Integer deleteStatus);

    int updateLogicDeleteById(@Param("id") Long id, @Param("logicDelete") Integer logicDelete);

    List<ServerInfo> selectList(@Param("logicDelete") Integer logicDelete, @Param("cityArea") String cityArea);

    List<ServerInfo> generalUserList(@Param("approvalStatus") Integer approvalStatus, @Param("deleteStatus") Integer deleteStatus);

    List<ServerInfo> searchList(@Param("logicDelete") Integer logicDelete, @Param("keyword") String keyword);

    List<ServerInfo> getListByServiceTypeAndCityArea(@Param("logicDelete") Integer logicDelete, @Param("cityArea") String cityArea, @Param("serviceType") Integer serviceType);
}